﻿using Microsoft.Phone.Controls;
using CDFWPUG.ViewModel;

namespace CDFWPUG.Views
{
    /// <summary>
    /// Description for pageLinks.
    /// </summary>
    public partial class pageLinks : PhoneApplicationPage
    {
        /// <summary>
        /// Initializes a new instance of the pageLinks class.
        /// </summary>
        public pageLinks()
        {
            InitializeComponent();
        }

        private void btnRefresh_Click(object sender, System.EventArgs e)
        {
            var vm = DataContext as pageLinksViewModel;
            if (vm != null)
            {
                vm.LinkRefreshCommand.Execute(null);
            }
        }
    }
}